import Tabs, { TabsProps } from '@/components/Tabs';
import HistoryData from '@/pages/Monitor/PCSMonitor/components/HistoryData';
import React from 'react';
import RealtimeMonitor from './components/RealtimeMonitor';

const PCSMonitor: React.FC = () => {
  const items: TabsProps['items'] = [
    {
      key: '1',
      label: '实时监控',
      children: <RealtimeMonitor />,
    },
    {
      key: '3',
      label: '历史数据',
      children: <HistoryData />,
    },
  ];
  return (
    <>
      <Tabs items={items}></Tabs>
    </>
  );
};

export default PCSMonitor;
